package com.rj2002.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class User implements Serializable {
    private Integer id;

    /**
     * 0买家，1商家，2管理员
     */
    private Integer role;

    /**
     * 账号信息
     */
    private String account;

    /**
     * 密码
     */
    private String passwords;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 0未审核 1正常 2封停 3封禁
     */
    private Integer flag;

    private Date createtime;

    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPasswords() {
        return passwords;
    }

    public void setPasswords(String passwords) {
        this.passwords = passwords;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", role=" + role + ", account=" + account + ", passwords=" + passwords + ", phone="
				+ phone + ", flag=" + flag + ", createtime=" + createtime + ", updatetime=" + updatetime + "]";
	}
    
    
}